home *** CD-ROM | disk | FTP | other *** search
- on checkclickspanos
- --for use with the panoramas
-
- --this script checks selected sprite channels below to see if they are
- --being clicked on using the polhemus wand
- --check channels 42-65
-
- global clicktestcursor
- global pclick
-
- i = 110
- repeat while i < 144
-
- --if the clicktestcursor is in the sprite, then changepano
- if sprite(clicktestcursor).within(i) then
-
- if pclick = "1" then
- global showpanos
- global showqtvr
- global showglossary
- global panoqtvr
- global panoimage
- global panotext
- global panotitle
- global mapbutton_on
- global showmapbutton_on
- global fov_indicator
- global showtitle
- global arrow
- global showparkinfo
-
- --This shows the mapbutton and changes its location to the location of the button clicked
- set the locH of sprite mapbutton_on = the locH of sprite (i)-6
- set the locV of sprite mapbutton_on = the locV of sprite (i)-6
- set the locH of sprite arrow = the locH of sprite (i)-5
- set the locV of sprite arrow = the locV of sprite (i)-5
-
- --Hide the mapbutton
- set showmapbutton_on = 0
- set the visible of sprite mapbutton_on = 0
- set the visible of sprite arrow = 0
-
- --Fades out the sound
- if the volume of sound 1 > 0 then
- sound fadeOut 1, 2 * 6
- end if
-
- --Hide the parkinfo
- set showparkinfo = 0
-
- global panonumber
- set panonumber = the memberNum of sprite (i)
- changepano
-
-
- end if
-
- end if
- i = i+1
- end repeat
-
-
- end
-